<?php
class View {

	public $name;
	public $module;
	
	function __construct($name, $module) 
	{ 
		$this->name = $name;
		$this->module = $module;
	}
	
	function render()
	{
		require 'library/layout/header.php';
		require 'library/modules/' . $this->module . '/views/' . $this->name . '.php';
		require 'library/layout/footer.php';
	}
}